//
//  TDViewUtils.m
//  TotalDemo
//
//  Created by gujian on 16/2/14.
//  Copyright © 2016年 gujian. All rights reserved.
//

#import "TDViewUtils.h"

@implementation TDViewUtils

+ (UILabel *)createCustomLabel
{
    UILabel *lbl = [[UILabel alloc] init];
    
    lbl.textColor = TEXT_COLOR_LIGHTGRAY;
    lbl.font = FONT_15;
    lbl.textAlignment = NSTextAlignmentCenter;
    lbl.backgroundColor = [UIColor clearColor];
    
    return lbl;
}

+ (UILabel *)createColorFullLabel
{
    UILabel *lbl = [self createCustomLabel];
    lbl.backgroundColor = [UIColor randomColor];
    return lbl;
    
}

+ (UIButton *)createCustomButton
{
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.titleLabel.textAlignment = NSTextAlignmentCenter;
    [btn setTitleColor:UICOLOR_ARGB(0xffb71e33) forState:UIControlStateNormal];
    [btn setTitleColor:TEXT_COLOR_LIGHTGRAY forState:UIControlStateHighlighted];
    [btn setTitleColor:TEXT_COLOR_LIGHTGRAY forState:UIControlStateDisabled];
    return btn;
}

@end
